package com.nhim.cms.util;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.nhim.cms.dao.ContentVersionValueDAO;
import com.nhim.cms.domain.ContentVersionValue;
@Service
public class ContentVersionValueManager {

	@Autowired
	ContentVersionValueDAO contentVersionDAO;
	
	@PostConstruct
	public void init() throws Exception {
	}

	@PreDestroy
	public void destroy() {
	}
	
	@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
	public  ContentVersionValue saveOrUpdate(ContentVersionValue entity)throws Exception {
		return contentVersionDAO.saveOrUpdate(entity);	
	}
	


}
